//  该文件用来定义路由规则, 并创建路由对象

// 引入对应的页面组件
import Homeroute from '@/views/router-view/Homeroute.vue'
import Categoryroute from '@/views/router-view/Categoryroute.vue'
import Cartroute from '@/views/router-view/Cartroute.vue'
import Mineroute from '@/views/router-view/Mineroute.vue'
// 01: 定义路由映射表
const routes = [
    {
        path: '/home',
        component: Homeroute
    },
    {
        path: '/category',
        component: Categoryroute
    },
    {
        path: '/cart',
        component: Cartroute
    },
    {
        path: '/mine',
        component: Mineroute
    }

]